package com.zbf.JaMiJieMi;

import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author: LCG
 * @date: 2023-02-10 17:14:39
 * @description:
 **/
@Configuration
public class FilterConfigure {

    @Bean
    public FilterRegistrationBean setFilterRegisterBean(){
        FilterRegistrationBean registration = new FilterRegistrationBean();
        registration.setFilter(new EncryptFilter());
        registration.addUrlPatterns("/*");
        registration.setOrder(FilterRegistrationBean.LOWEST_PRECEDENCE);
        return registration;
    }

}
